﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<table class="table-orderList">
    <thead>
    <td>订单编号</td>
    <td>卖家email</td>
    <td>买家姓名</td>
    <td>项目编号</td>
    <td>购买数量</td>
    <td>买家收到数量</td>
    <td>卖家收到数量</td>
    <td>token名称</td>
    <td>token pirce</td>
    <td>买家佣金</td>
    <td>卖家佣金</td>
    <td>下单时间</td>
    <td>操作</td>
    </thead>
    <c:forEach var="item" items="${data}" varStatus="list">
        <tr>
            <td>${item.oid }</td>
            <td>${item.email}</td>
            <td>${item.true_name }</td>
            <td>${item.pid }</td>
            <td>${item.buy_count }</td>
            <td>${item.final_buy_count }</td>
            <td>${item.final_sell_count }</td>
            <td>${item.token_name }</td>
            <td>${item.token_price }</td>
            <td>${item.buyer_platform_commission }</td>
            <td>${item.seller_platform_commission<=0?0:item.seller_platform_commission }</td>
            <td><fmt:formatDate value="${item.create_time }" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
            <td>
                <a class="text-primary mr-10" data-tab-title="详情" target="_blank"
                   href="${basePath}/t_order/add?oid=${item.oid}">详情</a>
            </td>
        </tr>
    </c:forEach>

</table>

<c:choose>
    <c:when test="${!empty data}">
        ${page}
    </c:when>
    <c:otherwise>
        <div class="relative" style="height: 200px">
            <span>没有符合条件的数据，请尝试其他搜索条件</span>
        </div>
    </c:otherwise>
</c:choose>

